<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<html>

	<head>
		<meta charset="utf-8">
		<title>个人中心</title>
		<link href="css/myui.css" rel="stylesheet" />
		<script src="js/mui.min.js"></script>
		<script type="text/javascript" src="js/jquery-1.9.0.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	</head>

	<body>
		<!--主要内容-->
		<div class="wh_user_content">
			
			<div class="wh_user_content_title_details">
				<div class="wh_user_content_title_details_title">个人中心</div>
				<a href="javascript:;" id="personal_information">
				<div class="wh_user_content_title_details_content">
					<img  id="chosedImage" src="img/touxiang.png">
				</div>
				
				<div class="wh_user_content_title_details_content_user" id="success_l">
					<a style="border-right: 1px solid #fff;" id="login">登录</a>
					<a id="register">注册</a>
				</div>
				</a>
				<!-- <img src="img/user_yinying.png" style="position: absolute;bottom: 0;left: 0;height: 100%;width: 100%;"> -->
			</div>
			
			<div class="wh_user_content_list">
				<a href="javascript:;" id="home_my_answer">
					<div class="wh_content">
						<div class="wh_content1"><img src="img/zixun.png"></div>
						<div class="wh_content2">
							<span>我的回答</span>
							<img src="img/more.png">
						</div>
					</div>
				</a>
				<a href="javascript:;" id="my_reservation">
					<div class="wh_content">
						<div class="wh_content1"><img src="img/yuyue.png"></div>
						<div class="wh_content2">
							<span>我的赴约</span>
							<img src="img/more.png">
						</div>
					</div>
				</a>
				<a href="javascript:;" id="my_welfare">
					<div class="wh_content">
						<div class="wh_content1"><img src="img/huodong.png"></div>
						<div class="wh_content2">
							<span>公益活动</span>
							<img src="img/more.png">
						</div>
					</div>
				</a>
				<a href="javascript:;" id="my_modify">
					<div class="wh_content">
						<div class="wh_content1"><img src="img/xiugai.png"></div>
						<div class="wh_content2" style="border-bottom: 0;">
							<span>资料修改</span>
							<img src="img/more.png">
						</div>
					</div>
				</a>
			</div>
		</div>
		
		<!---底部-->

		<div class="footer1">
			<a href="javascript:;" class="wh_footer1_a" id="home">
				<li>
					<p style=""><img src="img/wh_home12.png"></p>
					<p style="color: #fff;\">首页</p>
				</li>
			</a>
			<a href="javascript:;" class="wh_footer1_a" id="wh_camera">
				<li>
					<p><img src="img/wh_home14.png"></p>
					<p style="color: #fff;">公益活动</p>
					<img src="img/footer_center.png" class="footer_center_yuan">
				</li>
			</a>
			<a href="javascript:;" class="wh_footer1_a" id="user">
				<li>
					<p><img src="img/home13_2.png"></p>
					<p style="color: #ffd83b;">我的</p>
				</li>
			</a>
		</div>

	</body>

	<script src="js/index.js"></script>
	<script type="text/javascript">
	mui.ready(function(){ 
		//打开首页
		localtionURL("home","home.html");
		//打开公益
		localtionURL("wh_camera","wh_camera.html");
		//打开个人
		localtionURL("user","user.html");
		//打开登陆
		localtionURL("login","login.html");
		//打开注册
		localtionURL("register","register.html");
		//打开我的回答页面
		localtionURL("home_my_answer","home_my_answer.html");
		//打开我的赴约
		localtionURL("my_reservation","my_reservation.html");
		//打开我的公益活动
		localtionURL("my_welfare","my_welfare.html");
		//打开资料修改
		localtionURL("my_modify","my_modify.html");
		//打开注销页面
		
		mui.plusReady(function(){
			//获取参数 
			var phoneNum = localStorage.getItem("phoneNum");
			var isSuccess = localStorage.getItem("isSuccess");
			var checked = localStorage.getItem("checked"); 
			if(phoneNum){
				document.getElementById("success_l").innerHTML = phoneNum;
				localtionURL("personal_information","personal_information.html");
				var phoneNum = localStorage.getItem("phoneNum");
				var imgPath = localStorage.getItem("imgPath");
				getImage(phoneNum);
				function getImage(id) {
					var url = get_url() + '/register/lawyer/photo/' + id;
					$.ajax({
						method: "get",
						url: url,
						dataType: 'jsonp', //加入这个选项即可
						jsonp: "jsonpcallback",
						success: function(json) {
							if(json.imgPath != ""){
								$("#chosedImage").attr('src', "http://101.201.42.91:8083" + json.imgPath);
							}else{
								$("#chosedImage").attr('src', "touxiang.png");
							}
						}
						//error: function(jqXHR, textStatus, errorThrown) {}
					});
				}
			}else{
				document.getElementById("success_l").innerHTML = '<a style="border-right: 1px solid #fff;" id="login">登录</a><a id="register">注册</a>';
				localtionURL("login","login.html");
				localtionURL("register","register.html");
			}
		});
	});
	</script>
	</html>